package com.yungee.remote;

import com.yungee.vo.resp.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "feignTestService", url = "http://www.hongyuedu.cn/api")
public interface FeignTestService {
    @PostMapping("/send/sms/validcode")
    public AjaxResult createSmsCode(@RequestParam("mobile") String mobile);
    @RequestMapping("/test/index")
    public AjaxResult index(@RequestParam("name") String name,@RequestParam("age") String age);
}
